import request from '@/utils/request1'

// 新增招聘反馈信息
export function addFeedback(data) {
  return request({
    url: '/recruitmentFeedback/add',
    method: 'POST',
    data
  })
}

// 招聘反馈列表，分页
export function getFeedback(params) {
  return request({
    url: '/recruitmentFeedback/list',
    method: 'POST',
    params
  })
}

// 查询单条招聘反馈信息
export function selectFeedback(params) {
  return request({
    url: '/recruitmentFeedback/load',
    method: 'POST',
    params
  })
}

// 修改单条招聘反馈信息
export function updateFeedback(data) {
  return request({
    url: '/recruitmentFeedback/update',
    method: 'post',
    data
  })
}

// 删除单条招聘反馈信息
export function deleteFeedback(data) {
  return request({
    url: '/recruitmentFeedback/delete',
    method: 'POST',
    data
  })
}

// 以excel格式批量导入反馈信息
export function downloadFeedback(data) {
  return request({
    url: '/recruitmentFeedback/batchInsertFeedbackInfo',
    method: 'POST',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}

